/**
 * 资源配置
 */
import UrlOperation from '../../../js/utils/urlOperation'
class Config {
    constructor() {
        this.init();
        this.configData();
    }

    //初始化
    init(){
        let urlOperation=new UrlOperation();
        this.type=urlOperation.getParameters().type;
    }

    //根据不同的类型构造不同的数据接口供调用
    configData(){
        switch (this.type){
            case 'drivingLicense':
                this.data={
                    home:{
                        //首页数据配置
                        bottomMenuData:[{
                            text: '驾驶证邮寄',
                            img: './images/licenceCard.png',
                            checkedImg: './images/licenceCard_checked.png'
                        }, {text: '我的订单', img: './images/my.png', checkedImg: './images/my_checked.png'}],//底部导航栏配置
                        dataName:'drivingLicense'//数据存储名称
                    },
                };
                break;
            default:
                this.data={
                    home:{
                        //首页数据配置
                        bottomMenuData:[{
                            text: '身份证邮寄',
                            img: './images/idCard.png',
                            checkedImg: './images/idCard_checked.png'
                        }, {text: '我的订单', img: './images/my.png', checkedImg: './images/my_checked.png'}],//底部导航栏配置
                        dataName:'idCard'//数据存储名称
                    },
                };
                break;
        }
    }

}

export default new Config();